import request from '@/utils/request'

export function login(phone, pwd) {
  return request({
    url: 'user/login.json',
    method: 'post',
    data: {
      phone: phone,
      pwd: pwd,
      app: 4
    }
  })
}

export function getInfo() {
  return request({
    url: 'user/get.json',
    method: 'get',
    params: { }
  })
}

export function getWorkers() {
  return request({
    url: 'user/getWorkerList.json',
    method: 'get',
    params: { }
  })
}

